import { Http } from "../http/http"

class MapModel {
  // 首页地图
  static async orgMap(){
    return await Http.request({
        url: `system/map/1`,
        method:'GET',
    })
  }

  static async orgList(){
    return await Http.request({
        url: `system/organization/list`,
        method:'GET',
    })
  }

  static async buildingList(){
    return await Http.request({
        url: `system/building/app/list`,
        method:'GET',
    })
  }

  static async buildOrgList(id){
    return await Http.request({
        url: `system/building/org/list/${id}`,
        method:'GET',
    })
  }

  static async orgDetail(id){
    return await Http.request({
        url: `system/organization/${id}`,
        method:'GET',
    })
  }

  static async buildDetail(id){
    return await Http.request({
        url: `system/building/${id}`,
        method:'GET',
    })
  }

  static async partyList(){
    return await Http.request({
        url: `system/branch/list`,
        method:'GET',
    })
  }

  static async partyDetail(id){
    return await Http.request({
        url: `system/branch/${id}`,
        method:'GET',
    })
  }

  static async leagueList(){
    return await Http.request({
        url: `system/league_branch/list`,
        method:'GET',
    })
  }

  static async leagueDetail(id){
    return await Http.request({
        url: `system/league_branch/${id}`,
        method:'GET',
    })
  }
}

export {
  MapModel
}